﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {


            string usename = Request.Params["name"];
            string pawss = Request.Params["pawss"];
            Response.Write("<h1>"+"登陆成功 姓名:" +usename);
            Response.Write("登陆成功 密码:" + pawss + "<h1>");

      

     
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            string usename1 = Request.Form["name"];
            string pawss1 = Request.Form["pawss"];
            Response.Write("post欢迎您" + usename1 + "你的密码是" + pawss1);
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string userName2 = Request.QueryString["name"];
            string pwd2 = Request.QueryString["pawss"];
            Response.Write("get欢迎您  " + userName2 + "你的密码是  " + pwd2);
        }
    }
}